package com.sky.mapper;

import com.sky.pojo.entity.SetMealDish;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SetMealDishMapper {

    @Select("select * from db_takeout.setmeal_dish where dish_id = #{dishId}")
    SetMealDish getByDishId(Long dishId);

    //批量插入套餐菜品关系数据
    void insertBatch(List<SetMealDish> setmealDishes);


    @Delete("delete from setmeal_dish where setmeal_id = #{setmealId}")
    void deleteBySetmealId(Long setmealId);
}
